package top.wilsonlv.jaguar.commons.web.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @author lvws
 * @since 2022/3/10 0010
 */
@Slf4j
public class JaguarHttpSessionListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        log.debug("sessionCreated: {}", se.getSession().getId());
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        log.debug("sessionDestroyed: {}", se.getSession().getId());
    }
}
